﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Silverlight.Testing;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace MySilverlightApplication.MSTest
{
    [TestClass]
    public class ViewModelTests : SilverlightTest
    {
        readonly MainPageViewModel _viewModel = new MainPageViewModel(new MockAnnouncementsModel());

        [TestMethod]
        public void ViewModelDataLoadsCorrectly()
        {
            _viewModel.LoadModel();
            Assert.AreEqual(2, _viewModel.Announcements.Count());
        }
    }
}
